package com.yin.ketech.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;

/**
 * @ClassName SysUser
 * @Author luzw
 * @Description
 * @Version V1.0
 * @Date 2020/6/2 16:48
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
@ApiModel(value="SysUser对象", description="")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "用户名")
    @TableField("USERNAME")
    @NotEmpty
    private String username;

    @ApiModelProperty(value = "别名")
    @TableField("NICKNAME")
    private String nickname;

    @ApiModelProperty(value = "密码")
    @TableField("PASSWORD")
    private String password;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "性别 0.男 1.女")
    @TableField("SEX")
    private Integer sex;

    @ApiModelProperty(value = "邮箱")
    @TableField("EMAIL")
    private String email;

    @ApiModelProperty(value = "锁定状态 0.未锁定 1.锁定")
    @TableField("IS_LOCK")
    private Integer isLock;

    @ApiModelProperty(value = "删除状态 0.未删除 1.删除")
    @TableField("IS_DELETE")
    private Integer isDelete;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATED")
    private String created;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATED")
    private String updated;


}
